﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Heavy_Metals
{
    public partial class FormLogin : Form
    {
        public FormLogin()
        {
            InitializeComponent();
        }

        private void btnLogin_Click(object sender, EventArgs e)
        {

            this.Visible = false;
            MessageBox.Show("登录成功","操作提示");
            //this.Close();
            quanxian.quanxiant = this.comboLoginType.Text;
            if (this.comboLoginType.Text.Equals("企业"))
            {
                Start start = new Start(this);
                start.ShowDialog();
            }
            else
            {
                StartGovernment startG = new StartGovernment(this);
                startG.ShowDialog();
            }
        }

        private void btnReset_Click(object sender, EventArgs e)
        {
            this.Visible = false;
            RegisterCompany rc = new RegisterCompany(this);
            rc.ShowDialog();
            
        }

        private void FormLogin_Load(object sender, EventArgs e)
        {

        }
    }
}
